package com.shcz.migu.ui.fragment;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.shcz.migu.R;


/**
 * 加载中，可配置高度
 *
 * ARGUMENT_VIEW_HEIGHT 参数决定高度
 *
 */
public class LoadFragment extends Fragment {

    public final static String ARGUMENT_VIEW_HEIGHT     = "LoadFragment_Height";

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {

        Bundle bundle = getArguments();

        View view = inflater.inflate(R.layout.layout_fullscreen_loading_indicator, container, false);
        if(bundle != null){
            view.setMinimumHeight(bundle.getInt(ARGUMENT_VIEW_HEIGHT));

        }
        return view;
    }
}
